<?php
/* 永不超时 */
ini_set('max_execution_time', 0);
ini_set('display_errors', 1);
$time_start = microtime(true);
set_time_limit(0);
ini_set('memory_limit', '1024M');
require_once __THIS__ . '/../../core/init.php';

$memory_start = memory_get_usage();

send_email();

$size = memory_get_usage() - $memory_start;
$unit = array('b','kb','mb','gb','tb','pb'); 
$memory = @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; 
$time = microtime(true) - $time_start;
echo "Done in $time seconds\t $memory\n";



function send_email()
{
    sleep(2);
    echo 'sleep2';

}
